//------------------------------------------------------------------------------
// <pcdd-entitiy>
//     彩票游戏实体类库
//     用户记录实体对象
// </pcdd-entitiy>
//------------------------------------------------------------------------------

using System;
using Dapper;
namespace CL.Game.Entity
{

    /// <summary>
    /// CT_UsersRecord
    /// </summary>
    [Table("CT_UsersRecord")]
    public class UsersRecordEntity
    {

        /// <summary>
        /// 流水号
        /// </summary>
        [Key]
        public long ID { get; set; }

        /// <summary>
        /// 用户编号
        /// </summary>
        public long UserID { get; set; }

        /// <summary>
        /// 操作类型,0.充值 1.购彩消费 2.提现冻结 3.提现失败解冻 4.彩豆兑换 5.中奖 
        /// 11.用户撤单 12.系统撤单 13.追号撤单 14.投注失败退款 15.出票失败退款 
        /// 16.充值退款冻结 17.退款失败返回金额 20 官方加奖 21 系统加奖 22彩券购彩 
        /// 23彩券撤单 24彩豆购彩 25彩豆撤单
        /// </summary>
        public byte TradeType { get; set; }

        /// <summary>
        /// 交易金额
        /// </summary>
        public long TradeAmount { get; set; }

        /// <summary>
        /// 变化前余额
        /// </summary>
        public long Balance { get; set; }

        /// <summary>
        /// 交易描述
        /// </summary>
        public string TradeRemark { get; set; }

        /// <summary>
        /// 关联订单号
        /// </summary>
        public string RelationID { get; set; }

        /// <summary>
        /// 操作员编号
        /// </summary>
        public int OperatorID { get; set; }

        /// <summary>
        /// 交易时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 彩券
        /// </summary>
        public long CouponsID { set; get; }

    }
}
